<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="/static/css/you.css">
<title>选油报告 - 在线选油助手</title>
<style type="text/css">
.test{width:300px; padding:30px 20px; border:5px solid #beceeb; position:relative;}
.test span{width:0; height:0; font-size:0; overflow:hidden; position:absolute;}
.test span.bot{
    border-width:20px; 
    border-style:solid dashed dashed; 
    border-color:#beceeb transparent transparent; 
    left:80px; 
    bottom:-40px;
}
.test span.top{
    border-width:20px; 
    border-style:solid dashed dashed; 
    border-color:#ffffff transparent transparent; 
    left:80px; 
    bottom:-33px;
}
a.aclose {
	display:block;
	float:right;
	margin:5px;
}
#showpic{visibility:hidden;}
#template{display:none}

.mydiv {
background-color: #ff9;
border: 3px solid #f90;
text-align: center;
font-size: 12px;
font-weight: bold;
z-index:99;
width: 330px;
height: 85px;
left:50%;/*FF IE7*/
top: 50%;/*FF IE7*/

margin-left:-150px!important;/*FF IE7 该值为本身宽的一半 */
margin-top:-60px!important;/*FF IE7 该值为本身高的一半*/

margin-top:0px;

position:fixed!important;/*FF IE7*/
position:absolute;/*IE6*/

_top:       expression(eval(document.compatMode &&
            document.compatMode=='CSS1Compat') ?
            documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/
            document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/

}

position:fixed!important;/*FF IE7*/
position:absolute;/*IE6*/

_top:       expression(eval(document.compatMode &&
            document.compatMode=='CSS1Compat') ?
            documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/
            document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/

}
/*The END*/

</style>
<script>
function preview(oper)
{
	if (oper < 10)
	{
		bdhtml=window.document.body.innerHTML;
		sprnstr="<!--startprint"+oper+"-->";//设置打印开始区域  
		eprnstr="<!--endprint"+oper+"-->";//设置打印结束区域  
		prnhtml=bdhtml.substring(bdhtml.indexOf(sprnstr)+18);
		prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));
		window.document.body.innerHTML=prnhtml;
		window.print();
		window.document.body.innerHTML=bdhtml;
		} else {
		window.print();
	}
}

function showDiv(){
	document.getElementById('cg102983').innerHTML = document.getElementById('template').innerHTML;
	document.getElementById('cg102984').innerHTML = "";
	document.getElementById('popDiv').style.display='block';
	document.getElementById('bg').style.display='block';
}

function closeDiv(){
	document.getElementById('popDiv').style.display='none';
	document.getElementById('bg').style.display='none';
}
function ckmail(){
	var yx = document.getElementById('mail').value;
	var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if(filter.test(yx)){

		document.getElementById('showpic').style.visibility='visible';
		return true;
	}
	alert("请输入正确的邮箱地址!");
	return false;
}
function sendok(){
	document.getElementById('cg102983').innerHTML="发送成功";
	window.setTimeout(close_notice, 2000);
}
function senderror(){
	document.getElementById('cg102984').innerHTML="发送失败，请检查邮箱是否正确";
	document.getElementById('showpic').style.visibility='hidden';
	window.setTimeout(hidden_notice, 3000);
}
function close_notice(){
	closeDiv();
}
function hidden_notice(){
	document.getElementById('cg102984').innerHTML="";
}
</script>
</head>

<body>
<%include file="www/header.html"%>  
<div class="nav">当前位置：<a href="/">首页</a> »&nbsp; 选油报告</div>

<div class="w">
	<!--startprint1-->
	<div class="sm bg" style="width:800px;">
    <h3>选油报告</h3>
    <b><%if $type==2%>能满足您要求的油品太多了！按照性价比等综合排序，本系统推荐以下5种产品供您参考:<%else%>有以下油品供您参考选用：<%/if%></b><br />
	<%foreach from=$info.result item=item%>
    <p><span class="red mr"><%$item%></span></p>
	<%/foreach%>
	<br />
	<!-- 
	您提交的选油参数：<br />
	<%include file="www/table.html"%>
	<%if $info.type==1%>
		<%include file="www/table_1.html"%>
	<%elseif $info.type==2%>
		<%include file="www/table_2.html"%>
	<%elseif $info.type==3%>
		<%include file="www/table_3.html"%>
	<%elseif $info.type==4%>
		<%include file="www/table_4.html"%>
	<%elseif $info.type==5%>
		<%include file="www/table_5.html"%>
	<%elseif $info.type==6%>
		<%include file="www/table_6.html"%>
	<%/if%> 
    <p class="chuxhu">提示：本报告由工业维修网旗下选油助手提供，网址：http://xuanyou.cooljun.cn/</p>
    -->
	</div>
	<!--endprint1-->
    <div style="margin-top:30px"><a href="/yijian.html" class="btn3">反馈意见，获取50元代金券</a><a href="javascript:showDiv()" class="btn4 ml1">发邮箱</a><a href="javascript:;" class="btn4 ml1" onclick="preview(1)">打印</a></div>
	<div style="margin-top:20px;margin-bottom:50px;"><a href="/first.html" class="btn2">重新复核</a></div>
</div>
<%include file="www/footer.html"%>
<div id="popDiv" class="mydiv" style="display:none;"><a class="aclose" href="javascript:closeDiv()">关闭</a>
<div style="clear:both"></div>
<div id="cg102983"></div>
</div>

<div id="template">
<form name="form1" id="form1" method="post" action="" target="progress" onsubmit="return ckmail()">
<input type="hidden" name="id" value="<%$smarty.get.id%>" />
您的邮箱:<input id="mail" type="input" style="border:1px solid #CCC" size="15" name="mail" />
<input type="submit" name="submit" value="发送" style="background:#5897D1;color:#FFF;font-size:13px;padding:3px" />
<span id="showpic"><img src="/static/images/042.gif" /></span>
<div id="cg102984" style="color:#F00"></div>
</form>
</div>
<iframe name="progress" id="progress" width="0" height="0"></iframe>
</body>
</html>
